﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ErgoBreak.Data
{
    public class Messages
    {
        #region Fields
        private static Dictionary<string, string> messages;
        #endregion

        #region Events

        #endregion

        #region Constructors
        static Messages()
        {
            messages = new Dictionary<string, string>();
            BuildMessageCollection();
        }
        #endregion

        #region Properties

        #endregion

        #region Public Methods
        public static string GetMessage(string msgCode)
        {
            return messages[msgCode];
        }
        #endregion

        #region Non-Public Methods
        private static void BuildMessageCollection()
        {
            // ERRORS
            messages.Add("Err101", "The timinig value should be greater than 0");
            messages.Add("Err201", "There is no break going on.");
            messages.Add("Err202", "Argument '{0}' cannot be null.");

            // MESSAGES
        }
        #endregion
    }
}
